<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <script src="/static/header.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/systemctl/product?list=1&user={{ user }}">NANCAL</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a class="btn-group-sm" href="#">{{ user }}</a></li>
                <li><a class="btn-group-sm" href="/login/?close=1">退出</a></li>
            </ul>

        </div>
    </div>
</nav>
<div class="container">
    <div class="row">
        <div class="col-md-6 col-md-offset-3">
            <div class="page-header">
                <h1>修改信息</h1>
            </div>
            <form class="form-horizontal" action="/systemctl/edit_back/?id={{ press_obj.id }}&user={{ user }}&list={{ list }}" method="post">
                <div class="form-group" style="margin-bottom: 10px;">
                    <label for="press_ip" class="col-sm-3 control-label">内网ip</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_ip" name="ip" placeholder="内网ip" value="{{ press_obj.ip }}">
                    </div>
                    <label for="press_ip1" class="col-sm-3 control-label">外部ip</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_ip1" name="ip1" placeholder="外部ip" value="{{ press_obj.ip1 }}">
                    </div>
                    <label for="press_user" class="col-sm-3 control-label">用户名</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_user" name="user" placeholder="用户名" value="{{ press_obj.user }}">
                    </div>
                    <label for="press_pwd" class="col-sm-3 control-label">密码</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_pwd" name="pwd" placeholder="possword" value="{{ press_obj.pwd }}">
                    </div>
                    <label for="press_post" class="col-sm-3 control-label">端口</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_post" name="post" placeholder="端口" value="{{ press_obj.post }}">
                    </div>
                    <label for="press_timedate" class="col-sm-3 control-label">用途</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_purpose" name="purpose" placeholder="存在时间" value="{{ press_obj.purpose }}">
                    </div>
                    <label for="press_name" class="col-sm-3 control-label">使用人</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_name" name="name" placeholder="使用人" value="{{ press_obj.name }}">
                    </div>
                    <label for="press_emil" class="col-sm-3 control-label">邮箱</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_emil" name="emil" placeholder="邮箱" value="{{ press_obj.emil }}">
                    </div>
                    <label for="press_remark" class="col-sm-3 control-label">备注</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_remark" name="remark" placeholder="备注" value="{{ press_obj.remark }}">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-10 col-sm-9">
                        <button type="submit" class="btn btn-default">确认修改</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>


</body>
</html>